import 'package:json_annotation/json_annotation.dart';

part 'adbean.g.dart';


@JsonSerializable()
class adbean extends Object with _$adbeanSerializerMixin{

  @JsonKey(name: 'msg')
  String msg;

  @JsonKey(name: 'code')
  String code;

  @JsonKey(name: 'result')
  List<Result> result;

  adbean(this.msg,this.code,this.result,);

  factory adbean.fromJson(Map<String, dynamic> srcJson) => _$adbeanFromJson(srcJson);

}


@JsonSerializable()
class Result extends Object with _$ResultSerializerMixin{

  @JsonKey(name: 'page')
  int page;

  @JsonKey(name: 'pageSize')
  int pageSize;

  @JsonKey(name: 'totalRecords')
  int totalRecords;

  @JsonKey(name: 'pictureId')
  int pictureId;

  @JsonKey(name: 'pictureTitle')
  String pictureTitle;

  @JsonKey(name: 'pictureAddress')
  String pictureAddress;

  @JsonKey(name: 'pictureUrl')
  String pictureUrl;

  @JsonKey(name: 'pictureState')
  int pictureState;

  @JsonKey(name: 'creationTime')
  String creationTime;

  @JsonKey(name: 'orderNum')
  int orderNum;

  @JsonKey(name: 'creater')
  String creater;

  @JsonKey(name: 'totalPages')
  int totalPages;

  @JsonKey(name: 'firstIndex')
  int firstIndex;

  @JsonKey(name: 'lastPageNo')
  int lastPageNo;

  @JsonKey(name: 'previousPageNo')
  int previousPageNo;

  @JsonKey(name: 'nextPageNo')
  int nextPageNo;

  @JsonKey(name: 'limit')
  int limit;

  @JsonKey(name: 'start')
  int start;

  Result(this.page,this.pageSize,this.totalRecords,this.pictureId,this.pictureTitle,this.pictureAddress,this.pictureUrl,this.pictureState,this.creationTime,this.orderNum,this.creater,this.totalPages,this.firstIndex,this.lastPageNo,this.previousPageNo,this.nextPageNo,this.limit,this.start,);

  factory Result.fromJson(Map<String, dynamic> srcJson) => _$ResultFromJson(srcJson);

}


